# -*- coding: utf-8 -*-
"""
Author:duan
Date: 2021/2/28 12:35
"""
from xmlrpc.client import ServerProxy

if __name__ == '__main__':
    server = ServerProxy("http://localhost:8888")
    print(server.sum(1, 2))  # 调用函数1并传参
    print(server.add(2, 2))  # 调用函数2并传参
    print(server.add(7, 8))
